<include file="public:header" />
<include file="public:left" />
	 <style>
	 td{text-align:center;}
	 </style>
     <section>
      <div class="page_title">
        <h2 class="fl">百度识别界面</h2> 

        <a class="fr" href="{:url('set/set_baidu_param')}">去设置百度PM参数</a>
        <form action="" method="post" enctype="multipart/form-data" id="brandForm">
          <input type="file" name="pm_image" style="width: 150px;height: 20px;font-size: 11px;line-height: 17px; margin-left: 20px;float: left;margin-top: 10px; "/>
          <input type="text" name="img_value" placeholder='填写图片参数值，默认0.45' value='{$img_value}' style="width: 150px;height: 18px;font-size: 11px;line-height: 17px; margin-left: 20px;float: left;margin-top: 10px;"/>
          &nbsp;&nbsp;&nbsp;
          <input type="submit" class="page_title_submit" value="访问接口" style="height: 24px;width: 70px;line-height: 16px;cursor: pointer;">
          图片比例:660*490
        </form>
      </div>
      <if condition="$result.status neq 0">
      <table class="table">
       <tr>
           <th>id</th>
           <th>名称</th>
           <th>相似度</th>
       </tr>
	   
	   
	   <volist name="res" id="vo" key="k">
       <tr>
          <td>{$k}</td>
          <td>{$vo.name}</td>
          <td>{$vo.probability}</td>
       </tr>
	   </volist>

      </table>
      <else />
        {$result.message}
      </if>
      
     </section>
     <div class="page_title">
        <h2 class="fl">百度接口返回数据</h2> 
     </div>
     <div>
        <?php echo '<pre>'.$result_json.'</pre>'?>
     </div>
 </div>
</section>
</body>
</html>
